package com.itheima.String;

import java.util.Scanner;

public class DemooScanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int num = sc.nextInt();
        System.out.println("接收到的整数为:" + num);
        System.out.println("请输入一个字符串");
        String s = sc.next();
        System.out.println("接收到的字符串为:" + s);
    }
}
